before change to jsonobject