fixed the case statement by removing the remnants of when that portion of code was a while loop