resolved most of aig chapter todos