minor changes to transform