use numbers.length instead of numbers for for loop