updating bag getters and setters