change declaration style of analytics service to fit in better