make skip algo work