refactor missing values