extracted types into files