scoping issue?