added attribute exclusion logic into filter