added totalflow to lot