clean up before gii