moved analytics to head beginning