improve comparision of components by adding a case for UDFs