fixing invert might not be needed