moved dependency method to Dependency Analyzer