removes duplicate to_json
  updates for internal values