fixing json return