fixed eating algorithm