extended to have priority for tasks