object creation works now by setting fields null