use modulo and division operator