assigning tasks