working on saving variable