fixing the throw exception - ryan