clean up the reference