fixed some syntax errors
and some more errors fixed