updated the algorithm for checking pulling down tokens