remove obsolete reverences