imp warningLevel function