reorganizing variables to match bootstrap order