send method used instead of json because send is sufficient after converting to json