in createDataTag: positions by reference, not by value