set a[href] and improve peformance