to find errors