#JC-1251 create elements function. duplicate removed