skeleton for worklist algo