change scope of script