removed global retJSON