res not defined