trickle: added stop condition for trickle