working, need to fix res.send error