where function, tests, and docs