added clip depth support