for log reduce error