assigning by range
assigning by whole range (changed name)