updated createObject