make depth not nullable