moved task data to the stack