fix zero ideal bug
hackish function field implementation