for the cases (a) and (b)