change variable name to typedefed name