analytics

added functions