dep[0] should not be 1 here