amends to tasks logic