replace TypeTag with explicit datatype