removes intermediate task functions