remove filter for only leader and prepare to write a new file for filter