fixed some important syntax errors