removed unnecessary code from graham's scan