Solution to problem GC