gates was deputy assistant to the president for national security affairs from march until august 1989, and was assistant to the president and deputy national security adviser from august 1989 until november 1991.