Reverting back
diff --git a/nlsr-sync-0.0/nlsr_sync.c b/nlsr-sync-0.0/nlsr_sync.c
index 22156c4..52b74d5 100644
--- a/nlsr-sync-0.0/nlsr_sync.c
+++ b/nlsr-sync-0.0/nlsr_sync.c
@@ -82,17 +82,22 @@
  	struct ccn_indexbuf cid={0};
 
     	struct ccn_indexbuf *components=&cid;
-    	//ccn_name_split (name, components);
+    	ccn_name_split (name, components);
     	//ccn_name_chop(name,components,-3);
 	//process_content_from_sync(name,components);
 
 	struct ccn_charbuf *content_name = ccn_charbuf_create();
-	res = ccn_name_append(content_name, name->buf, name->length);
-	res = ccn_name_split (content_name, components);
+	ccn_name_init(content_name);
+	res = ccn_name_append_components(content_name, name->buf, components->buf[0], components->buf[components->n - 1]);
+
+	struct ccn_indexbuf cid1={0};
+    	struct ccn_indexbuf *components1=&cid1;
+    	res=ccn_name_split (content_name, components1);
 
 	printf("Res = %d \n",res);
+
 	ccn_charbuf_destroy(&content_name);
-	
+	ccn_indexbuf_destroy(&components1);
 
   return(0);
 }