pop from stack of tasks