hack to work with NAs