updating position