try to get right type