tried to change the constructior of the udf