adding whitelist functionality.