modified to make the website param -collection work correctly