adding generic stacks