fixed backfill (hopefully) to not use as much memory