fixed bag object and improved efficiency