finish writing the reconstruct flow