adjust genPosX.