gaurd againts bad nodes