fixing sending response
I wish that res.send() would end the function