remove error function in proto