Codes must respect mask