add remainder for division problems