kaihi algorithm remove bagu