modified  analytics2