removed old triangle code