fix up scattred.c