using right type