remove error functions