add possibility to pass HTML element collection