making more adjustments in invert_eo.c