refactored index filter
added unindex filter