tightened up fraction and integer operations