imporved return type for response