get fd type