make change to class tags function