algorithm now returns weight, orginal-x-position.