set the right type