_invert: verify input data