moved station assignment for loop to inside init func