some changes made in insert and readstring