clean up update_position.
Merge pull request #58 from ibawt/update_position_refactor

clean up update_position.