remove unnecessary return in task