compress model