not working well. fix syntax error