implemented a method for the yxz flow