get rid of getOrCreateElement