changed query to getjson