update contig space