added modulo comparison in int part