some changes to script