#1 changing exists() and node() to n attribute