adding in error handling when no xml element is found