complete discussion and task section function