case switch would not work in this instance