refactor create task
fixed create task spec