trimmed all depth and skeleton stream code