cleaning up structure
building an append based stack