added for loop and ifElse instructions