add learning switch