modified script 8 and add script 9
Modified script 9