fix syntax errors
work in progress