build depth