Rewrite the check