using array of numbers for delays