its used for treating diarrhea