removing script scope