printing out in case statement