using fstream from now on