updated the role filtering behavior