save and loading working for outputs