added comment to res controller