refactor polymer into polymer-element