changed to json type