match and arrange