script to do GBC with truncated shopping history