in a method for operating an internal combustion engine in which the angular locations where the fuel / air mix combustions takes place can be controlled by an adjustment of the inlet and outlet valve timing , the timing of at least one of the intake and exhaust valve opening phases is shifted depending on the engine speed so as to reduce engine emissions .