Change num of updating position
Change float to double