processes tasks