udpated renumber_position method per Albert's comment