clean bugs

clean most of the syntax errors