edits to SNcompression --David Caratelli