changed model add method