changed output type to json