named generator function 'views' for improved debugging