added missing semi-colons and fixed syntax error