Mechanism of action of cyanide poison is