fixed syntax errors and updated skeleton