set dependencies destroy for the models