re-implement array search method
Fix GCT combination code