more robust way to prevent peer interaction of only the same type