how to manage model  in object