added to code to understand structure and make sense of how to compress.