fix syntax errors detected during testing