added to delete dependencies method