make one method for the dependency check