change depth handling