expand codes for speed