tweaks for R