the second version for task management