Today the dye is used for specific staining of dead cells in microscopy. In medicine it is used in ophthalmic cataract surgery to stain the anterior capsule. However, another historical role of Trypan blue (also under Ehrlich's supervision) is that it has been a prototype of effective drugs to treat human trypanosomiasis .