clean up after sg