modify codes order