removed old piece of code