made some flow corrections.