added gmidpoint pt1