removed old algo