working on saving and opening