formatting for the json done