handling object id initialization