match edges