reorganizing variables