added missing variables to the json code