fixes stacks