move the transformation functions to the util namespace