added anayltics back in