change if -> switch