edited to take the french files. made agg func more streamline