switching check on lb.i to use remainder operator