diff --git a/pixel.cpp b/pixel.cpp
index 54df4684c34969aab12406a51643a663a27030da..862be46dd812f803074a28f28267c1bd374f8bd1 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -25,14 +25,12 @@ void pixel(
 
 	if(counter==w){
 		pkt.data*=2;
-	}
-	else if(counter< w){
-		count++;
-	}
-	else{
 		counter=0;
+
 	}
 	
+	count++;
+	
 
 
 	dout.write(pkt);