fix documentation
stricter comparison of references