make sure zero values in arrays don't get ignored