Remove unnecessary res