flow transformation