binary searching with (gr) to debug