add support for inversions