corrected syntactic errors from previous commits