switching task type