fix syntactic errors