fixed small scoping bug