add logic to taskdeal