renaming variables in arrays