slight cleanups in ifgram