return response instead of echo