added contig minimum length check