added more methods to stack