better edge finding