added stack defintions