end syntax error fixed