add zero divide handling to divide method.