change %a%, %b%... to names