add instructions in the right order