rename mid_point to mid