decorator for response object