making data savable