use xtype on define