modifications to ifstream statement