depth update up to end of doc