improved ObjectId creation