replace references by names