setting new midpoint