add element scope and name