working on reversing stacks