working with dep and doc