dimension reduction based on NAs