added Rout for construct_flat_seq