handling high level compression fcn in main