udpate task input data and remove useless task data