added missing template param in 2d element classes