from and to table working