final changes to script