fixing compression_logic.js