regenerate with search function in models (per #2) and longer person.code field