changed expression to give the remainder