finished sorting, need to implement filters