readded depth wrapper