XPATH: Removed unneccessary code