extracting type of warning