mode code preprocessing for processing