protecting UDF