bson size checks