fixed a syntax error which was not allowing the script to run