optimize Transformation class