diff --git a/pixel.cpp b/pixel.cpp
index 30dcaf5898c25bdf6dcd805417ce32961708a6c1..376cde267d0b3e5e606c1cbf8dd886128e2b14d8 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -9,8 +9,8 @@ typedef ap_axis<32,0,0,0> pkt_t;
 
 
 void pixel(
-		ap_int<32> w,
-        ap_int<32> len,
+		ap_int<32> &w,
+        ap_int<32> &len,
 		hls::stream< pkt_t > &din,
 		hls::stream< pkt_t > &dout
 ) {
@@ -23,10 +23,10 @@ void pixel(
 	pkt_t pkt;
 	din.read(pkt);
 
-	if(pkt.data){
+	// if(pkt.data){
 
-		len=len+1;
-	}
+	len++;
+	// }
 
 	if(len==w){
 		pkt.data*=2;