enhancing anchor tag processing method