fixing switch method default triggering