making sure to return json