for R specialisation