code for saving to format had disappeared due to previous changes; this was an error