diff --git a/pixel.cpp b/pixel.cpp
index ce5ec8c4c6002e8b79d9a05eef000c944d0f030f..63fe889de3c4371116a57ee99c207926dc94cc8d 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -46,7 +46,7 @@ void pixel(
             break;
 
         case 1:
-            stegnoDecrypt();
+            stegnoDecrypt(pkt.data);
             break;
 
         default:
@@ -70,7 +70,7 @@ void pixel(
 void stegno(char c){
     
     // to check
-	charIn=toAscii(character);
+	charIn=toAscii(c);
 	if(count_streams > 3 * (position - 1) && count_streams < 3 * (position2)){
 		addNum=charIn%10;
 		charIn=(int)charIn/10;
@@ -85,10 +85,8 @@ long long stegnoDcrypt(int data){
     decrpyt=convert(data)%10;
 
     asciiNum=asciiNum*10+decrpyt;
+    asciiVal= convertBinInt(asciiNum);
 	
-	asciiVal= convertBinInt(asciiNum);
-    return asciiVal;
-    
 }