fixing problems in designing ==Bag