cleanup transformation