add for loop to allocate wireless nodes