added a way to save