tried to fix the syntax error ordering issue