remove some redundency in task execution