removed R-stopifnot