add cases code