finish the transform