removed old code comments, and fixed a missing bag error