made functions to modify json