adjusted two tables