populate table working