add to timer intr code