renaming variable correctly