add call to finalization at the end of the transformations