Maybe should be more like this? ```R last2 <- function (x, y) { miss <- is.na(x) | is.na(y) x <- x[!miss] y <- y[!miss] y[order(x)][length(y)] } ```