trying to fix food surpluss function