trying to fix bugs in the json file