replaced multiples function with range call