fixed syntax errors and method names