change codes hierarchy