diff --git a/src/utils/bedFile/bedFile.cpp b/src/utils/bedFile/bedFile.cpp
index cb5b8fde9de92a037ab62bcfe490ea4dfe66d4fd..fc5ec7d79e66724def8a20ea9133bcdfb8428f5b 100755
--- a/src/utils/bedFile/bedFile.cpp
+++ b/src/utils/bedFile/bedFile.cpp
@@ -181,8 +181,8 @@ bool BedFile::GetNextBed (BED &bed, int &lineNum) {
 		if (parseLine(bed, bedFields, lineNum)) {
 			return true;
 		}
-		return false;
 	}
+	return false;
 }
 
 
@@ -355,22 +355,6 @@ void BedFile::countHits(const BED &a, bool forceStrand) {
 }
 
 
-
-
-/*******************************************
-Class methods
-*******************************************/
-
-// Constructor
-BedFile::BedFile(string &bedFile) {
-	this->bedFile = bedFile;
-}
-
-// Destructor
-BedFile::~BedFile(void) {
-}
-
-
 void BedFile::setGff (bool gff) {
 	if (gff == true) this->isGff = true;
 	else this->isGff = false;
diff --git a/src/utils/bedFile/bedFile.h b/src/utils/bedFile/bedFile.h
index 960dfc60059b7832d71fccd0dc6a297442f209d6..e0cc18d8ca4c448e0ef146b1085430b83ff6ce93 100755
--- a/src/utils/bedFile/bedFile.h
+++ b/src/utils/bedFile/bedFile.h
@@ -12,6 +12,7 @@
 #ifndef BEDFILE_H
 #define BEDFILE_H
 
+#include "gzstream.h"
 #include <vector>
 #include <map>
 #include <string>
@@ -22,7 +23,7 @@
 #include <algorithm>
 #include <limits.h>
 #include <cstdio>
-//#include <tr1/unordered_map>
+
 using namespace std;
 
 //*************************************************
@@ -207,6 +208,8 @@ private:
 	bool parseGffLine (BED &bed, const vector<string> &lineVector, int lineNum);
 	
 	void setGff (bool isGff);
+	
+	istream *bedStream;
 };
 
 #endif /* BEDFILE_H */