optimize the ability of task manager