making the whitelist dynamic