added initial code for ccg search