add a filter function for leader list