remove deprecated 'apply'