changed zzz.R to be compatible with R v3