documentation and beginning of _nav function