parsing BEQ loopend