added remove missing values functionality