eliminated one sprintf in data json generation