added ... to apply() calls