use view instead of v variable