stack added some methods