silly scoping issue