changed interrupt method