changed string representation of switch obj