simple loop

checks i and i + 1  only