more proper tsdf math