fix the dependencies-based printout