improved generated views