found source of error, now correctly reads and saves