added flow updtate