malfunction detection