functions/check_method library