correct inversion of results