changed multiplication and division routines