final syntax errors removed