Effect of hydraulic retention time on COD removal