implementing an object creation event