rebuildJSON added