rename switchValue ->boolValue