readjust size of codes