created a get_dependants function from get_dependencies.