removed old code which had been kept around just in case