added throw to views.