converting tons of variables to object format for saving purposes