finding the modulus of negative numbers