removed unused model function