modified structure of codes