changed is.na to is.null