implemented midPoint track to shapes in the making