working auto populate