Simplifying codes