add some transformation functions. doesnt compile now, need to fix imports and stuff