added macro for bson attribute fields