still works to be done for contigs problem