change the check statement