add a way to calculate study stats by source