removed reliance on DOM tools attribute