appending action code to task