correct insert data flow