fix reduce error, add code_minutes