calling it in view 2