working through problem with switch