removed unneeded ifstreams