oops! used "== NULL" rather than "is.null()"