changed cool case statement to boring if else