if chaining
adding modulo operator