@samsonradu maybe rename this to `transform()` ?