forgot to change writing/reading to file