Codes for OI problems