added a function to stacks...