add get depth method