updates stacks