takes a view