remove gbg function