change variable name in function