fixed error throwing?