working on fixing JSONArray