upgrade syntax of check