fix syntax error and test it