use class defined type