rework for loops in rnAdd and wsAdd