changed the content type to json