starting getMidpoint()