fixing reference to names