pointers in loop over IFO weren't being set correctly. Now fixed