function logic for conditional processing function failure conditions