change hash to class element