trial for clean algorithm