update the engine