Rod restriction and code min