added setting for returnzero