added code for adaptive GC flag