added some transformation functions