correcting syntax error