duplicate view_def