corrected flow calculations