prevent self-connection