syntax error and variable changes