check dependency