working on analytics stuff