changed analytics method