use view in the place of unsafe_view