correct inverted sentences