remove error snippts