diff --git a/faceverify/dct_ubm.py b/faceverify/dct_ubm.py
index 17e86d97680a5465852cfe1a08cd07c94c23fd44..c941d5c13d2b82d66d05f89cd5f806c74c9928c3 100644
--- a/faceverify/dct_ubm.py
+++ b/faceverify/dct_ubm.py
@@ -220,6 +220,8 @@ def main():
   
   # save plot to file
   pyplot.savefig("dct_ubm.png")
-  # show ROC curve
-  pyplot.show()  
+
+  # show ROC curve.
+  # enable it if you like. This will open a window and display the ROC curve
+#  pyplot.show()  
  
diff --git a/faceverify/eigenface.py b/faceverify/eigenface.py
index 01d20cd7701ed002128c160d3e8e4e1af66dbffd..0a08784743650c18ec641b9e53b4f808ee5c54da 100644
--- a/faceverify/eigenface.py
+++ b/faceverify/eigenface.py
@@ -84,16 +84,7 @@ def main():
   
   print "Training PCA machine"
   pca_machine = train(training_images)
-  
-  # extract the first eigenvector
-  projection_matrix = pca_machine.weights
-  eigen_image = projection_matrix[:,0]
-  # reshape the eigenvector to the right image resolution
-  eigen_image.shape = (112,92)
-  # show the first eigenface
-  pyplot.imshow(eigen_image, cmap = 'gray')
-  pyplot.show()
-  
+
   #####################################################################
   ### extract eigenface features of model and probe images
 
@@ -152,6 +143,8 @@ def main():
 
   # save plot to file     
   pyplot.savefig("eigenface.png")
-  # show ROC curve
-  pyplot.show()  
+
+  # show ROC curve.
+  # enable it if you like. This will open a window and display the ROC curve
+#  pyplot.show()  
  
diff --git a/faceverify/gabor_phase.py b/faceverify/gabor_phase.py
index e8c1ed5834bf551aeeccb16fb137db70a907c2d6..f82d2b7abf7aaeaf40bb34d564331311a9e0cca0 100644
--- a/faceverify/gabor_phase.py
+++ b/faceverify/gabor_phase.py
@@ -131,5 +131,8 @@ def main():
 
   # save plot to file     
   pyplot.savefig("gabor_phase.png")
-  # show ROC curve
-  pyplot.show()
+
+  # show ROC curve.
+  # enable it if you like. This will open a window and display the ROC curve
+#  pyplot.show()  
+