fix syntax error, update example