change remainder to rem