introduce depth tracking