removal of ancient unused code