reducing DOM construction