removed assign for CRAN compatibility