simpler way to make sure dependency is satisfied