commented edge detect + no longer use findAofr in edge detect