final changes to stack class