bson: unneeded var