implement rename on the dictionary state