chore assigning algorithm