new method to order contigs