the check method