handle missing value better