prevent self matching