added compression of outputs