add updating positions

add updating positions