add na.rm args in several places