remove NA's when computing mean.