update position computation