edge finding in index