added values to statistics view on the aggregate function and sped shit up by more than 10x