createObjectByName method added