change id types to ObjectId's