remove redundant attribute matches