added trace to figure out allgrid_f