working on phantom refs