using range in list