better handling of missing values