switched condition order