fixed syntax error and instructions order