made depth option publc (not sure about that)