generating compressed output