ring: create common function for updating tail index