add task assign function