the save function is working, stuck on file.open