name training instead of viewname
new function for name training
cleanup