parameterized stacks + iterators