implemented depth disambiguation