correcting syntax errors