remove duplicate method checkDependencies()