update UDF for LRB Q2