added exception for parent a element