median filtering on raw flow data added