invcust to modelCheck