changed res.json to res.send