fix compression prototype