warning detection