filling the tables