finalizing the first flow