add depth inversion