more accurate dependency calculation
more accurate dependency calculation