added scope to the proc var so that PPC arch's would not fail