made the filtering work for matching students