adding case and output