corrected object creation