fixing line to save joads to file