forgot type signatures in switch