finalized before gdi class