fixed syntax error and updated to latest version