updated the position collector algorithms.