switched to array in json