fixed access specifier for Bag