copy/paste/modify code to pass location tests.