finish and test updatePos