set right type