all switch cases and output functions