implement task modify method