update for table position and merging
update for table position and merging