generates data for new group column in elements