put the concatenation of contigs outside the use_ends flag.