replace use of class tag with type tag