passed populated workunits to match function