if not with a UDF, then what can I use ?