removed unused res