used recursion to find next air date