add modify function to task