Rm unnecessary algorithm