properly perform the whitelist/blacklist of attribute