updated to allow for data to JSON