data file maintenance and min max calculator