I was an idiot, did not know how the switch function works