simplifying rational expresssion