taking care of NAs