phantom reference debugging