makes mapDepthToSkeleton more consistent