locate() not location() in the code example.