correcting a few bad mallocs