renaming function
generate views