refactored transformations.compute