view.captures function