move check function to instance