changed views function
 added views function2