change invertion method