in case (a) and case (b)