rewrite using html utility method
filtering atts array