simplifying fractional expressions