modify dexobject factory