finish filters and sorting