working on system for saving data