changes logic warn & crit