Added udf for intersecter