changed interrupt enabling sequence