it mostly used for treating bacterial infections