removed old function view