variable scope updates