changed some lines and appended some other