remove deprecated by reference assigning of return values