used xpath for clearer processing code