remove debug messages
fixed syntax error