eliminate similar relations