make match safe