passes tests and prelim matching