finish_dep works