clean up of references