moved variables upstairs