adding xtype