refactor into methods for xpaths