integrated task assignment

need to refactor tasks