refactore getName of Reference