add LOOP and REPEAT statements