throws excetion from constructor