re-added maxrating in flat files for calculation