initialize the check method