restricted ref version to avoid compilation error