some changes realted to BSON