refactoring and ExxporType test