replaced messed up add to bag stuff with old code