some changes in read write table