changed dom creation type