fuck deletion algorithm