removing res from gi