updated for mixpanel