removed old code that is not called.