renamed method createObject to createInstance