New compound will stop illness causing bacteria