update to ex.c