The maximum efficiency of BOD removal is achieved in