implemented calculate conc in one dim.