minor improvement to response rendering