building dataset transformations