delete res variable