adding GAMS manipulation code