use midpoints as initial marker positions