fix the throw statement