updated to pass R checks for R dev (3.1.0)