add functionality to filter NAs