Set swithbackcondition to virtual function