properly dealing with having sparse null values.