populate the whole table programmatically