cutoff issue fixed

Adding Raj's i==j test