now works multiple times on a page without overwriting its arguments